﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Logistics_Management_System.Customer_Employee_Permission
{
    public class Permission_Repository : ServiceBase
    {
        public LG_Role GetRoleById(int role_id)
        { return (from role in this.DB.LG_Roles where role.Id == role_id select role).FirstOrDefault<LG_Role>(); }

        public LG_Permission GetPermissionById(int per_id)
        { return (from per in this.DB.LG_Permissions where per.Id == per_id select per).FirstOrDefault<LG_Permission>(); }

    }
}